import request from "@/utils/request";

// 查询EMS厂履历数据列表
export function listTi(query) {
  return request({
    url: "/huawei/getList",
    method: "get",
    params: query,
  });
}

// 查询EMS厂履历数据详细
export function getTi(interfaceId) {
  return request({
    url: "/huawei/ti/" + interfaceId,
    method: "get",
  });
}

// 新增EMS厂履历数据
export function addTi(data) {
  return request({
    url: "/huawei/ti",
    method: "post",
    data: data,
  });
}

// 修改EMS厂履历数据
export function updateTi(data) {
  return request({
    url: "/huawei/ti",
    method: "put",
    data: data,
  });
}

// 删除EMS厂履历数据
export function delTi(interfaceId) {
  return request({
    url: "/huawei/ti/" + interfaceId,
    method: "delete",
  });
}

// 导出EMS厂履历数据
export function exportTi(query) {
  return request({
    url: "/huawei/ti/export",
    method: "get",
    params: query,
  });
}
